<ul class="heroes">
  <li *ngFor="let hero of heroes" (click)="onSelect(hero)" [class.selected]="hero === selectedHero">{{hero.name}}</li>
</ul>

<app-hero-detail [hero]="selectedHero"></app-hero-detail>